/* -----------------------------------------------------------------------
 *   Copyright (C) 2008 by Denjs
 *   dplsoft@pisem.net
 *   http://qdroid.berlios.de
 * -----------------------------------------------------------------------
 *   This program is free software licensed under GNU GPL License v.2 ; see main.cpp fo details
 *   Эта программа является свободным программным обеспечением; распространяемым под
 *   лицензией GNU General Public License v.2 (УНИВЕРСАЛЬНАЯ ОБЩЕСТВЕННАЯ ЛИЦЕНЗИЯ GNU версия 2.0) 
 * ----------------------------------------------------------------------- */
/*
 * t_FileBot.cpp
 *
 *  Created on: 28.11.2008
 *      Author: Denjs
 */

#include "t_FileBot.h"
//============================================================

t_FileBot::t_FileBot(QObject *parent)
		: t_AbstractQDroidBot(parent)
{

}
//============================================================
// needs to have ability to be included to QList
t_FileBot::t_FileBot(const t_FileBot &other)// needs to be included to QList
{
	//qDebug()<<"t_FileBotElement::t_FileBotElement(t_FileBotElement&):[0020]: other.Note1_inc =" << other.Note1_inc;
	////this->FileList=other.FileList;
	//this->FileList.clear(); this->FileList+=(other.FileList);
	//this->CurrentElementCopy=other.CurrentElementCopy;

	//return *this;
}
/**/

//============================================================
// needs to be included to QList
t_FileBot& t_FileBot::operator=(const t_FileBot &other)
{
	//qDebug()<<"t_FileBotElement::operator=:[0033]: other.Note1_inc =" << other.Note1_inc;
	//this->FileList.clear();
	//this->FileList+=(other.FileList);


	return *this;
}

//============================================================
/* virtual function to be redefined to make real class */
QString t_FileBot::std_in(QString Message)
{

	return "ok";
}

//===========================================================================
/* virtual function to be redefined to make real class */
t_FileBot* t_FileBot::copy()
{
	t_FileBot *El;
	El=new t_FileBot();
	*El=*this;
	return El;
}

//===========================================================================
bool t_FileBot::set_current_dir(QString CurDir)
{
	return QDir::setCurrent(CurDir);
}

//===========================================================================
//переименовать файл или каталог
bool t_FileBot::rename_file(QString Sourse,QString Dest)
{
	return ServQDirObj.rename(Sourse,Dest);
}

//===========================================================================
//скопировать файл или каталог
bool t_FileBot::copy_file(QString Sourse,QString Dest)
{
	return ServQFileObj.copy(Sourse,Dest);
}

//===========================================================================
//удалить файл или каталог и задать вопрос если указан. на ответ "ДА" производится удаление файла.
int t_FileBot::remove_file(QString FilePath,QString Qwestion)
{

}

//===========================================================================
//создать подкаталог в каталоге Path,
bool t_FileBot::make_dir(QString DirPathName)
{
	return ServQDirObj.mkdir(DirPathName);
}

//===========================================================================
